import os

def findAllFile(base):
    for root, ds, fs in os.walk(base):
        for f in fs:
            if f.endswith('.xls'):
                fullname = os.path.join(root, f)
                yield fullname

def main():
    base = '数据测试集'
    for i in findAllFile(base):
        print(i)

if __name__ == '__main__':
    # print(os.path.join("a","b"))
    main()